
public class ImageGrayscaleTransparency: BasicOperation {

    public let transparencyEndValue: Float
    public let transparencyStartValue: Float
    public let transparencyRangeValue: Float

    public init(startValue: Float = 0.2, endValue: Float = 0.97) {
        self.transparencyEndValue = endValue
        self.transparencyStartValue = startValue
        self.transparencyRangeValue = endValue-startValue
        super.init(fragmentFunctionName: "imageGrayscaleTransparencyFragment", numberOfInputs: 1)
        self.uniformSettings["transparencyEndValue"] = self.transparencyEndValue
        self.uniformSettings["transparencyStartValue"] = self.transparencyStartValue
        self.uniformSettings["transparencyRangeValue"] = self.transparencyRangeValue
    }
}
